﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace WBAssistant.BLL._SettingsManager
{
    /// <summary>
    /// Classe abstraite parente, comportant les méthodes qui vont être utilisées
    /// </summary>
    public abstract class Settings
    {

        /// <summary>
        /// liste de des paramètres.
        /// </summary>
        private List<Settings> _settingList;

        /// <summary>
        /// Initializes a new instance of the <see cref="Settings"/> class.
        /// </summary>
        public Settings()
        {
            // On instancie la liste de des paramètres.
            SettingList = new List<Settings>();
        }

        //
        /// <summary>
        /// Gets or sets liste de des paramètres.
        /// </summary>
        /// <value>
        /// The setting list.
        /// </value>
        public List<Settings> SettingList
        {
            get { return _settingList; }
            private set { _settingList = value; }
        }

        public abstract string Section { get; }

        public void load() 
        {
            var configLit = ConfigurationManager.GetSection(Section);
            configLit.
        }

        public void get_config() { }

        public void set_config() { }

        public void save_config() { }
    }
}
